export default class StrUnit {

    constructor(){
        	
    }
    public static getQueryVariable(variable)
    {
        var urlArr = window.location.href.split("?");
        if(urlArr.length < 2)
        return false;

        var query = urlArr[1];

        var vars = query.split("&");

        for (var i=0;i<vars.length;i++) {
                var pair = vars[i].split("=");
                if(pair[0] == variable){return pair[1];}
        }
        return false;

    }
    public static getUUID():string{
            return Math.random().toString(16).slice(2);  
    }

}